home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / pcl / src-16f.lha / ldb / signal.h < prev    next >
C/C++ Source or Header  |  1991-11-06  |  886b  |  33 lines

  1. #ifndef _SIGNAL_H_
  2. #define _SIGNAL_H_
  3.  
  4. #include </usr/include/signal.h>
  5.  
  6. #ifdef sparc
  7.  
  8. /* We need to fake the existance of a reasonable sigcontext */
  9. struct lisp_sigcontext {
  10.     /* This part is identical to the real sigcontext. */
  11.     int     sc_onstack;        /* sigstack state to restore */
  12.     int     sc_mask;        /* signal mask to restore */
  13.     int     sc_sp;                  /* sp to restore */
  14.     int     sc_pc;                  /* pc to retore */
  15.     int     sc_npc;                 /* next pc to restore */
  16.     int     sc_psr;                 /* psr to restore */
  17.     int     sc_g1;                  /* register that must be restored */
  18.     int     sc_o0;
  19.  
  20.     /* And this is the part we have added. */
  21.     unsigned long sc_regs[32];
  22.     unsigned long sc_fpregs[32];
  23.     long sc_y;
  24.     unsigned long sc_fsr;
  25. };
  26.  
  27. #define sigcontext lisp_sigcontext
  28.  
  29. #endif sparc
  30.  
  31.  
  32. #endif _SIGNAL_H_
  33.